<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>libnetconf: src/with_defaults.h Source File</title>

<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="../../cesnet-logo-125.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">libnetconf
   &#160;<span id="projectnumber">0.1.1</span>
   </div>
   <div id="projectbrief">NETCONF library</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0-20120409 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('da/dbe/with__defaults_8h.html','../../');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">with_defaults.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../da/dbe/with__defaults_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00041"></a>00041 <span class="preprocessor">#ifndef WITH_DEFAULTS_H_</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#define WITH_DEFAULTS_H_</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="preprocessor">#include &quot;<a class="code" href="../../d5/d48/messages_8h.html" title="Functions to create NETCONF messages.">messages.h</a>&quot;</span>
<a name="l00045"></a>00045 
<a name="l00046"></a><a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9">00046</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00047"></a><a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9a0d81a2784281ceef0b6f2cef0dc7a41a">00047</a>         <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9a0d81a2784281ceef0b6f2cef0dc7a41a">NCDFLT_MODE_DISABLED</a> = 0,
<a name="l00048"></a><a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9a4da74d3afdd3090b55999788a5e7771b">00048</a>         <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9a4da74d3afdd3090b55999788a5e7771b">NCDFLT_MODE_ALL</a> = 1,
<a name="l00049"></a><a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9aae3e0fec1727cbd3873f020673d477b2">00049</a>         <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9aae3e0fec1727cbd3873f020673d477b2">NCDFLT_MODE_TRIM</a> = 2,
<a name="l00050"></a><a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9a8da0ba967efdd6344aff3be995418479">00050</a>         <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9a8da0ba967efdd6344aff3be995418479">NCDFLT_MODE_EXPLICIT</a> = 4,
<a name="l00051"></a><a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9abb76f4152e24036638a49ba38bed132e">00051</a>         <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9abb76f4152e24036638a49ba38bed132e">NCDFLT_MODE_ALL_TAGGED</a> = 8
<a name="l00052"></a>00052 } <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9">NCDFLT_MODE</a>;
<a name="l00053"></a>00053 
<a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="../../d1/df7/group__withdefaults.html#ga09827f8096ddbf28bf4955254299cbed" title="Set basic mode of the with-defaults capability for the NETCONF server.">ncdflt_set_basic_mode</a>(<a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9">NCDFLT_MODE</a> mode);
<a name="l00070"></a>00070 
<a name="l00080"></a><a class="code" href="../../d1/df7/group__withdefaults.html#ga2f7ad46580c9d311a31ed090baa7e22e">00080</a> <span class="preprocessor">#define NCDFLT_DISABLE ncdflt_set_basic_mode(NCDFLT_MODE_DISABLED)</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span>
<a name="l00086"></a>00086 <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9">NCDFLT_MODE</a> <a class="code" href="../../d1/df7/group__withdefaults.html#gaf5b02a59944cda3cc65859f67df4a0f6" title="Get current set basic mode of the with-defaults capability.">ncdflt_get_basic_mode</a>();
<a name="l00087"></a>00087 
<a name="l00099"></a>00099 <span class="keywordtype">void</span> <a class="code" href="../../d1/df7/group__withdefaults.html#gaef1d4d6cb1a0b212ffe88cca68e97a21" title="Set with-defaults modes that are supported.">ncdflt_set_supported</a>(<a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9">NCDFLT_MODE</a> modes);
<a name="l00100"></a>00100 
<a name="l00106"></a>00106 <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9">NCDFLT_MODE</a> <a class="code" href="../../d1/df7/group__withdefaults.html#gafb1af1e519d77c793af539d8d34c27ce" title="Get ORed value containing currently supported with-defaults modes.">ncdflt_get_supported</a>();
<a name="l00107"></a>00107 
<a name="l00121"></a>00121 <span class="keywordtype">int</span> <a class="code" href="../../d1/df7/group__withdefaults.html#gaaa00b95c82c5bff5374540b31c6edc1e" title="Set &lt;with-defaults&gt; parameter for the given NETCONF RPC message.">ncdflt_rpc_withdefaults</a>(<a class="code" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262" title="rpc message.">nc_rpc</a>* rpc, <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9">NCDFLT_MODE</a> mode);
<a name="l00122"></a>00122 
<a name="l00129"></a>00129 <a class="code" href="../../da/dbe/with__defaults_8h.html#ac70bef25cced39f6bab2ca5623ac57d9">NCDFLT_MODE</a> <a class="code" href="../../d1/df7/group__withdefaults.html#ga832290f05e7a581e480507b4b3b6adf3" title="Get value of the &lt;with-defaults&gt; element from the rpc message.">ncdflt_rpc_get_withdefaults</a>(<span class="keyword">const</span> <a class="code" href="../../db/de9/group__rpc.html#gab21d1d39737065c552f2ccc5b4819262" title="rpc message.">nc_rpc</a>* rpc);
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 <span class="preprocessor">#endif </span><span class="comment">/* WITH_DEFAULTS_H_ */</span><span class="preprocessor"></span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="../../dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a>      </li>
      <li class="navelem"><a class="el" href="../../da/dbe/with__defaults_8h.html">with_defaults.h</a>      </li>

    <li class="footer">Generated on Fri Aug 3 2012 08:25:37 for libnetconf by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0-20120409 </li>
   </ul>
 </div>


</body>
</html>
